These Examples are in text format to allow copying and pasting


EXAMPLES FROM LONG MANUAL

/+++++++++++++++++++++++++++
Address 0	/Always specify a starting address
Begin		/Just a label that defines a point in the program, you could call it anything
Move 10000	/This line moves the servos to the rotations in element 10000
Wait 20	/This is a short delay
Move 10001	/This line moves the servos to the rotations in element 10001
Output 15 on	/This line turns on the LED on the board
Wait 20	/This is a short delay so the light stays on
Output 15 off	/This line turns off the LED on the board
Goto begin	/This line sends the interpreter back to the start you may also write "Goto 0"
/Stop is not necessary because it's a continuous loop
/Now tell the loader put data starting at element 10000
Address10000 	/Notice that spaces are optional
Position	s1=10000 s2=12500	/That's 1MS for servo 1 and 1.25 for servo2
/The loader automatically moves to the next line (10001)
Position	s1=20000 s2=17500	/That's 2MS for servo 1 and 1.75 for servo2
/+++++++++++++++++++++++++++++

NEXT EXAMPLE

/+++++++++++++++++++++++++++
Address 0	/Always specify a starting address
begin		/Just a label that defines a point in the program, you could call it anything
Move 10000 rate=200	/This line moves the servos to the rotations in element 10000
Wait 20	/This is a short delay
Move 10001	/This line moves the servos to the rotations in element 10001
Output 15 on	/This line turns on the LED on the board
Wait 20	/This is a short delay so the light stays on
Output 15 off	/This line turns off the LED on the board
Goto begin	/This line sends the interpreter back to the start you may also write "Goto 0"
/Stop is not necessary because it's a continuous loop
/Now tell the loader put data starting at element 10000
Address10000 	/Notice that spaces are optional
Position	s1=10000 s2=12500	/That's 1MS for servo 1 and 1.25 for servo2
/The loader automatically moves to the next line (10001)
Position	s1=20000 s2=17500	/That's 2MS for servo 1 and 1.75 for servo2
/+++++++++++++++++++++++++++++

NEXT EXAMPLE


/+++++++++++++++++++++++++++
Address 0	/Always specify a starting address
begin		/Just a label that defines a point in the program, you could call it anything
Move 10000	/This line moves the servos to the rotations in element 10000
Wait 20	/This is a short delay
Move 10001	/This line moves the servos to the rotations in element 10001
Output 15 on	/This line turns on the LED on the board
Wait 20	/This is a short delay so the light stays on
Output 15 off	/This line turns off the LED on the board
DSR1=25
Goto begin	/This line sends the interpreter back to the start you may also write "Goto 0"
/Stop is not necessary because it's a continuous loop
/Now tell the loader put data starting at element 10000
Address10000 	/Notice that spaces are optional
Position	s1=10000 s2=12500	/That's 1MS for servo 1 and 1.25 for servo2
/The loader automatically moves to the next line (10001)
Position	s1=20000 s2=17500	/That's 2MS for servo 1 and 1.75 for servo2
/+++++++++++++++++++++++++++++


EXAMPLES SET FROM RATE MANUAL

Example 1: Using the default DSR method and default speed

Move 10,000 		/Move using DSR1

Example 2: Using the default DSR method and specifying speeds
DSR1=50		/Set DSR1 to 50
Move 10,000		/Move using DSR1
DSR1=250		/Change DSR1 to 250
Move 10,001		/Move using DSR1
Example 3: Using the default DSR method on one move and DSR2 with another move
DSR2=50		/Set DSR2 to 50
Move 10,000	DSR2	/Move using DSR2
Move 10,001		/Move at the standard system DSR1 rate

Example 4: Using the default DSR method and modifying speeds
DSR1=50		/Set DSR1 to 50
Move 10,000		/Move using DSR1 (default)
DSR1+10		/Increase the speed by 10
Move 10,000		/Move using DSR1 (default)
	
Example 5: Vary the speed, the "yo-yo" program
Here			/Label
DSR1=50		/Set DSR1 to 50
Do 40			/Set up a loop counter
Move 10,000		/Move using DSR1 (default)
Move 10,001		/Move using DSR1 (default)
DSR1+10		/Increase the speed by 10
Loop			/Back to the Do until finished

Do 40			/Set up a loop counter
Move 10,000		/Move using DSR1 (default)
Move 10,001		/Move using DSR1 (default)
DSR1-10		/Decrease the speed by 10
Loop			/Back to the Do until finished
Goto here		/Go back and start over
End

Address 10,000		/Set the servo positions for two servos
Position s1=12,500 s2=17,500
Position s1=17,500 s2=12,500

